package com.tbm.base.service;

import com.tbm.entity.MenuEntity;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Administrator on 2017/8/30.
 */
public interface MenuService {

    List<MenuEntity> findAll();
    List<MenuEntity> findAll(Iterable<Integer> it);
    List<MenuEntity> findAll(Example<MenuEntity> menuEntityExample);
    Page<MenuEntity> findAll(Pageable pageable);

    List<MenuEntity> findByParentId(String parentId);

    void save(MenuEntity menuEntity);
    int count();

}
